package com.pjmike.server;

import com.pjmike.server.netty.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ServerApplication {

    public static void main(String[] args) throws Exception {
//        SpringApplication.run(ServerApplication.class, args);
        ConfigurableApplicationContext context = SpringApplication.run(ServerApplication.class);


        NettyServer tcpService = context.getBean(NettyServer.class);
        tcpService.start();
    }


}
